let app=new Vue({
    el:"#loginApp",
    data:{
        username:'',
        password:''
    },methods:{
        login:function () {
            let form=new FormData()
            form.append('username',this.username)
            form.append('password',this.password)
            console.log(form)
            axios({
                url:'/login',
                data:form,
                method:'post'
            }).then(function (response) {
                alert(response)
            }).catch(function (error) {
                alert(error)
            })
        }
    }
})